<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<html>
<head>
<title>A Free Online Rental Application</title>
<script LANGUAGE="JavaScript">
	function validateForm() {
		if (document.authForm.j_username.value == "") {
			alert("User Name should not be left blank");
			document.authForm.j_username.focus();
			return false;
		} else if (document.authForm.j_password.value == "") {
			alert("Password should not be left blank");
			document.authForm.j_password.focus();
			return false;
		} else {
			document.authForm.submit();
		}
	}
</script>

</head>
<body BGCOLOR="#FDF5E6">
<table width="100%">
			<tr>
				<td align="center">
					<a href="newUser"> <bean:message
							key="rental.registration" /> </a>
				</td>
			</tr>
		</table>
<CENTER>
<h1>User Login</h1>
<table>
	<form method="POST" name="authForm" action="j_security_check">
		<tr>
			<td><bean:message key="userRegistration.userName" /> *</td>
			<td><input type="text" name="j_username"></td>
		</tr>
		<tr>
			<td><bean:message key="userRegistration.password" /> *</td>
			<td><input type="password" name="j_password"></td>
		</tr>
		<tr>
			<td><input type ="button" value ="Sign Me Up!" onclick="validateForm()" /></td>
		</tr>
	</form>
</table>
</CENTER>
</body>

</html>
